﻿<ResourceDictionary
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"    
    xmlns:prim="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data">

    <Style TargetType="sdk:DataGrid" x:Key="DataGridDefault">
        <Setter Property="AutoGenerateColumns" Value="False" />
        <!--<Setter Property="HeadersVisibility" Value="All"/>-->
        <Setter Property="RowBackground"  Value="White" />
        <Setter Property="AlternatingRowBackground" Value="#FFF9F8E9" />
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="GridLinesVisibility" Value="All"/>        
    </Style>

    <Style TargetType="prim:DataGridColumnHeader" x:Key="HeaderWrapStyle">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <TextBlock Text="{Binding}" TextWrapping="Wrap" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    
    <Style TargetType="prim:DataGridColumnHeader" x:Key="HeaderIconeLixeira">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent">
                        <Image Source="{StaticResource IconeLixeira}" Width="15" Height="15" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="prim:DataGridColumnHeader" x:Key="HeaderIconeLapis">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent">
                        <Image Source="{StaticResource IconeLapis}" Width="15" Height="15" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="sdk:DataGrid" x:Key="ShadowDataGrid">
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect BlurRadius="11" Color="#FFA6ABAD"/>
            </Setter.Value>
        </Setter>        
    </Style>
    
    
</ResourceDictionary>
